package com.ztgf.order.models.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author YUE
 * @create 2020-06-23 10:41
 */
@Data
public class ShopCardCommodityVO implements Serializable {
    @ApiModelProperty(value = "商品id")
    private Long commodityId;
    @ApiModelProperty(value = "规格属性ids/套餐id")
    private String attrIds;
    @ApiModelProperty(value = "商品名字")
    private String commodityName;
    @ApiModelProperty(value = "商品图片")
    private String commodityImgUrl;
    @ApiModelProperty(value = "商品数量")
    private String commodityNum;
    @ApiModelProperty(value = "商品优惠类型")
    private OrderCommodityVO commodityDiscounts;
    @ApiModelProperty(value = "商品单价")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal singleCommodityPrice;
    @ApiModelProperty(value = "商品小计")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal commodityTotal;
    @ApiModelProperty(value = "商品优惠总价")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal commodityDiscountTotal;
    @ApiModelProperty(value = "商品真实价格")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal commodityRealTotal;
    @ApiModelProperty(value = "是否询价:0否,1是")
    private Integer isInquiry;
    @ApiModelProperty(value = "询盘商品服务费")
    private BigDecimal purchaseFeeMoneyScalePrice;
}